package com.rightsidetech.activity.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * act_activity_mall_type
 * @author 
 */
public class ActActivityMallType implements Serializable {
    /**
     * 主键
     */
    private Long id;

    /**
     * 活动id
     */
    private Long giftActivityId;

    /**
     * 商品分类
     */
    private Long mallTypeId;

    /**
     * 商品分类名称
     */
    private String mallTypeName;

    /**
     * 创建时间
     */
    private Date createdAt;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getGiftActivityId() {
        return giftActivityId;
    }

    public void setGiftActivityId(Long giftActivityId) {
        this.giftActivityId = giftActivityId;
    }

    public Long getMallTypeId() {
        return mallTypeId;
    }

    public void setMallTypeId(Long mallTypeId) {
        this.mallTypeId = mallTypeId;
    }

    public String getMallTypeName() {
        return mallTypeName;
    }

    public void setMallTypeName(String mallTypeName) {
        this.mallTypeName = mallTypeName;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ActActivityMallType other = (ActActivityMallType) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getGiftActivityId() == null ? other.getGiftActivityId() == null : this.getGiftActivityId().equals(other.getGiftActivityId()))
            && (this.getMallTypeId() == null ? other.getMallTypeId() == null : this.getMallTypeId().equals(other.getMallTypeId()))
            && (this.getMallTypeName() == null ? other.getMallTypeName() == null : this.getMallTypeName().equals(other.getMallTypeName()))
            && (this.getCreatedAt() == null ? other.getCreatedAt() == null : this.getCreatedAt().equals(other.getCreatedAt()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getGiftActivityId() == null) ? 0 : getGiftActivityId().hashCode());
        result = prime * result + ((getMallTypeId() == null) ? 0 : getMallTypeId().hashCode());
        result = prime * result + ((getMallTypeName() == null) ? 0 : getMallTypeName().hashCode());
        result = prime * result + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", giftActivityId=").append(giftActivityId);
        sb.append(", mallTypeId=").append(mallTypeId);
        sb.append(", mallTypeName=").append(mallTypeName);
        sb.append(", createdAt=").append(createdAt);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}